package main

import (
	"fmt"
	"myOJ/config"
	"myOJ/controll"
	_ "myOJ/db"
	"net/http"
	"time"
)

func init() {
	config.InitConfig()
	controll.ControllInit()
	fmt.Println("Running:", time.Now())
}

func main() {
	if err := http.ListenAndServe(config.ConfigValues.Host+":"+config.ConfigValues.Port, nil); err != nil {
		panic(err)
	}
}
